home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / hyprmrg2.hqx / HyperMerge 2.02 / background_2296.txt < prev    next >
Text File  |  1989-02-26  |  11KB  |  424 lines

  1. -- background: 2296 from stack: in.02
  2. -- bmap block id: 3222
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 8000
  11. -- rect: left=383 top=104 right=121 bottom=492
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Copy & Merge
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   global destination,source,firstCard,numberOfCards,totalNumberOfCards
  23.   hide message
  24.   put "Copy cards from which stack?" into card field 1
  25.   show card field 1
  26.   put fileName("STAK") into source
  27.   if source is empty then
  28.     hide card field 1
  29.     exit mouseUp
  30.   end if
  31.   hide card field 1
  32.   answer "Do you want to copy the entire stack?" with "No" or "Yes"
  33.   if it is "No" then
  34.     ask "How many cards do you want to copy?"
  35.     put it into numberOfCards
  36.     ask "Starting with which card number? (Not ID!)"
  37.     put it into firstCard
  38.   else
  39.     put "All" into numberOfCards
  40.   end if
  41.   put "Paste cards to end of which stack?" into card field 1
  42.   show card field 1
  43.   put fileName("STAK") into destination
  44.   if destination is empty then
  45.     hide card field 1
  46.     exit mouseUp
  47.   end if
  48.   answer "Merge stacks?" with "Merge" or "Cancel"
  49.   --give user chance to bail out
  50.   if it = "Cancel" then
  51.     hide card field 1
  52.     exit mouseUp
  53.   end if
  54.   put "After I'm done, I'll leave you at the merged stacks." into card field 1
  55.   set lockScreen to true
  56.   set lockMessages to true
  57.   set the cursor to 4
  58.   go stack source
  59.   if numberOfCards is "All" then
  60.     repeat for the number of cards
  61.       domenu copy card
  62.       go next card
  63.       push card
  64.       go last card of destination
  65.       domenu paste card
  66.       pop card
  67.     end repeat
  68.   else
  69.     put numberOfCards into totalNumberOfCards
  70.     subtract firstCard from totalNumberOfCards
  71.     if the number of cards < totalNumberOfCards then
  72.       beep
  73.       show message
  74.       put "You need to start again & change the number of cards!" into message
  75.       wait for 5 seconds
  76.       hide message
  77.       go "HyperMerge 2.02"
  78.       hide card field 1
  79.       exit mouseUp
  80.     else
  81.       go card firstCard
  82.       repeat for numberOfCards
  83.         domenu copy card
  84.         go next card
  85.         push card
  86.         go last card of destination
  87.         domenu paste card
  88.         pop card
  89.       end repeat
  90.     end if
  91.   end if
  92.   set lockScreen to false
  93.   set lockMessages to false
  94.   go to stack destination
  95.   show message
  96.   put "Merge Complete!" into message
  97.   wait for 3 seconds
  98.   put "You're at stack " & destination into message
  99. end mouseUp
  100.  
  101.  
  102. -- part 5 (field)
  103. -- low flags: 01
  104. -- high flags: 0000
  105. -- rect: left=3 top=61 right=309 bottom=512
  106. -- title width / last selected line: 0
  107. -- icon id / first selected line: 0 / 0
  108. -- text alignment: 0
  109. -- font id: 3
  110. -- text size: 12
  111. -- style flags: 2304
  112. -- line height: 16
  113. -- part name: HyprMerge Instructions
  114.  
  115.  
  116. -- part 6 (button)
  117. -- low flags: 00
  118. -- high flags: 0000
  119. -- rect: left=377 top=66 right=109 bottom=433
  120. -- title width / last selected line: 0
  121. -- icon id / first selected line: 1000 / 1000
  122. -- text alignment: 1
  123. -- font id: 0
  124. -- text size: 12
  125. -- style flags: 0
  126. -- line height: 16
  127. -- part name: Functionless Button
  128.  
  129.  
  130. -- part 8 (button)
  131. -- low flags: 00
  132. -- high flags: 0000
  133. -- rect: left=418 top=64 right=98 bottom=460
  134. -- title width / last selected line: 0
  135. -- icon id / first selected line: 22308 / 22308
  136. -- text alignment: 1
  137. -- font id: 0
  138. -- text size: 12
  139. -- style flags: 0
  140. -- line height: 16
  141. -- part name: Functionless Button 2
  142.  
  143.  
  144. -- part 9 (button)
  145. -- low flags: 00
  146. -- high flags: 0000
  147. -- rect: left=447 top=68 right=105 bottom=505
  148. -- title width / last selected line: 0
  149. -- icon id / first selected line: 1000 / 1000
  150. -- text alignment: 1
  151. -- font id: 0
  152. -- text size: 12
  153. -- style flags: 0
  154. -- line height: 16
  155. -- part name: New Button
  156.  
  157.  
  158. -- part 10 (button)
  159. -- low flags: 00
  160. -- high flags: 8000
  161. -- rect: left=386 top=181 right=198 bottom=495
  162. -- title width / last selected line: 0
  163. -- icon id / first selected line: 0 / 0
  164. -- text alignment: 1
  165. -- font id: 0
  166. -- text size: 12
  167. -- style flags: 0
  168. -- line height: 16
  169. -- part name: Cut & Merge
  170. ----- HyperTalk script -----
  171. on mouseUp
  172.   global destination,source,firstCard,numberOfCards,totalNumberOfCards
  173.   hide message
  174.   put "Cut cards from which stack?" into card field 1
  175.   show card field 1
  176.   put fileName("STAK") into source
  177.   if source is empty then
  178.     hide card field 1
  179.     exit mouseUp
  180.   end if
  181.   hide card field 1
  182.   answer "Do you want to cut the entire stack? (Delete)" with "No" or "Yes"
  183.   if it is "No" then
  184.     ask "How many cards do you want to cut?"
  185.     put it into numberOfCards
  186.     ask "Starting with which card number? (Not ID!)"
  187.     put it into firstCard
  188.   else
  189.     put "All" into numberOfCards
  190.   end if
  191.   put "Paste cards to end of which stack?" into card field 1
  192.   show card field 1
  193.   put fileName("STAK") into destination
  194.   if destination is empty then
  195.     hide card field 1
  196.     exit mouseUp
  197.   end if
  198.   answer "Merge stacks?" with "Merge" or "Cancel"
  199.   --give user chance to bail out
  200.   if it = "Cancel" then
  201.     hide card field 1
  202.     exit mouseUp
  203.   end if
  204.   put "After I'm done, I'll leave you at the merged stacks." into card field 1
  205.   set lockScreen to true
  206.   set lockMessages to true
  207.   set the cursor to 4
  208.   go stack source
  209.   if numberOfCards is "All" then
  210.     repeat for the number of cards
  211.       domenu copy card
  212.       go next card
  213.       push card
  214.       go last card of destination
  215.       domenu paste card
  216.       pop card
  217.     end repeat
  218.     go stack source
  219.     set userLevel to 5
  220.     wait for 60
  221.     doMenu "Delete Stack..."
  222.   else
  223.     put numberOfCards into totalNumberOfCards
  224.     subtract firstCard from totalNumberOfCards
  225.     if the number of cards < totalNumberOfCards then
  226.       beep
  227.       show message
  228.       put "You need to start again & change the number of cards!" into message
  229.       wait for 5 seconds
  230.       hide message
  231.       go "HyperMerge 2.02"
  232.       hide card field 1
  233.       exit mouseUp
  234.       go card firstCard
  235.     else
  236.       repeat for numberOfCards
  237.         domenu cut card
  238.         push card
  239.         go last card of destination
  240.         domenu paste card
  241.         pop card
  242.       end repeat
  243.     end if
  244.   end if
  245.   set lockScreen to false
  246.   set lockMessages to false
  247.   go to stack destination
  248.   show message
  249.   put "Merge Complete!" into message
  250.   wait for 3 seconds
  251.   put "You're at stack " & destination into message
  252. end mouseUp
  253.  
  254.  
  255. -- part 11 (button)
  256. -- low flags: 00
  257. -- high flags: 0000
  258. -- rect: left=378 top=139 right=182 bottom=434
  259. -- title width / last selected line: 0
  260. -- icon id / first selected line: 24463 / 24463
  261. -- text alignment: 1
  262. -- font id: 0
  263. -- text size: 12
  264. -- style flags: 0
  265. -- line height: 16
  266. -- part name: Functionless Button
  267.  
  268.  
  269. -- part 13 (button)
  270. -- low flags: 00
  271. -- high flags: 0000
  272. -- rect: left=451 top=144 right=181 bottom=509
  273. -- title width / last selected line: 0
  274. -- icon id / first selected line: 1000 / 1000
  275. -- text alignment: 1
  276. -- font id: 0
  277. -- text size: 12
  278. -- style flags: 0
  279. -- line height: 16
  280. -- part name: New Button
  281. ----- HyperTalk script -----
  282. on mouseUp
  283. end mouseUp
  284.  
  285.  
  286.  
  287. -- part 14 (button)
  288. -- low flags: 00
  289. -- high flags: 8000
  290. -- rect: left=388 top=267 right=284 bottom=497
  291. -- title width / last selected line: 0
  292. -- icon id / first selected line: 0 / 0
  293. -- text alignment: 1
  294. -- font id: 0
  295. -- text size: 12
  296. -- style flags: 0
  297. -- line height: 16
  298. -- part name: Delete Cards
  299. ----- HyperTalk script -----
  300. on mouseUp
  301.   global destination,source,firstCard,numberOfCards
  302.   hide message
  303.   put "Delete cards from which stack?" into card field 1
  304.   show card field 1
  305.   put fileName("STAK") into source
  306.   if source is empty then
  307.     hide card field 1
  308.     exit mouseUp
  309.   end if
  310.   hide card field 1
  311.   answer "Do you want to delete the entire stack?" with "No" or "Yes"
  312.   if it is "No" then
  313.     ask "How many cards do you want to delete?"
  314.     put it into numberOfCards
  315.     ask "Starting with which card number? (Not ID!)"
  316.     put it into firstCard
  317.   else
  318.     set lockscreen to true
  319.     set lockmessages to true
  320.     go stack source
  321.     set userLevel to 5
  322.     domenu Delete Stack...
  323.     go stack "HyperMerge 2.02"
  324.     put "Stack Deleted!" into card field 1
  325.     show card field 1
  326.     wait for 5 seconds
  327.     hide card field 1
  328.     set lockscreen to false
  329.     set lockmessages to false
  330.     exit mouseUp
  331.   end if
  332.   put numberOfCards into totalNumberOfCards
  333.   subtract firstCard from totalNumberOfCards
  334.   if the number of cards < totalNumberOfCards then
  335.     beep
  336.     show message
  337.     put "You need to start again & change the number of cards!" into message
  338.     wait for 5 seconds
  339.     hide message
  340.     go "HyperMerge 2.0"
  341.     hide card field 1
  342.     exit mouseUp
  343.   else
  344.     answer "Delete cards?" with "Delete" or "Cancel"
  345.     --give user chance to bail out
  346.     if it = "Cancel" then
  347.       hide card field 1
  348.       exit mouseUp
  349.     end if
  350.   end if
  351.   put "After I'm done, I'll leave you here." into card field 1
  352.   set lockscreen to true
  353.   set lockmessages to true
  354.   set the cursor to 4
  355.   go stack source
  356.   go card firstCard
  357.   repeat for numberOfCards
  358.     domenu delete card
  359.   end repeat
  360.   set lockScreen to false
  361.   set lockMessages to false
  362.   go to stack "HyperMerge 2.0"
  363.   put "Delete Complete!" into card field 1
  364.   show card field 1
  365.   wait for 3 seconds
  366.   hide card field 1
  367. end mouseUp
  368.  
  369.  
  370. -- part 17 (button)
  371. -- low flags: 00
  372. -- high flags: 0000
  373. -- rect: left=451 top=231 right=268 bottom=509
  374. -- title width / last selected line: 0
  375. -- icon id / first selected line: 71 / 71
  376. -- text alignment: 1
  377. -- font id: 0
  378. -- text size: 12
  379. -- style flags: 0
  380. -- line height: 16
  381. -- part name: New Button
  382.  
  383.  
  384. -- part 18 (button)
  385. -- low flags: 00
  386. -- high flags: 0000
  387. -- rect: left=378 top=223 right=266 bottom=434
  388. -- title width / last selected line: 0
  389. -- icon id / first selected line: 24463 / 24463
  390. -- text alignment: 1
  391. -- font id: 0
  392. -- text size: 12
  393. -- style flags: 0
  394. -- line height: 16
  395. -- part name: Functionless Button
  396.  
  397.  
  398. -- part 19 (button)
  399. -- low flags: 00
  400. -- high flags: 0000
  401. -- rect: left=422 top=143 right=177 bottom=464
  402. -- title width / last selected line: 0
  403. -- icon id / first selected line: 22308 / 22308
  404. -- text alignment: 1
  405. -- font id: 0
  406. -- text size: 12
  407. -- style flags: 0
  408. -- line height: 16
  409. -- part name: Functionless Button 2
  410.  
  411.  
  412. -- part 20 (button)
  413. -- low flags: 00
  414. -- high flags: 0000
  415. -- rect: left=422 top=228 right=262 bottom=464
  416. -- title width / last selected line: 0
  417. -- icon id / first selected line: 22308 / 22308
  418. -- text alignment: 1
  419. -- font id: 0
  420. -- text size: 12
  421. -- style flags: 0
  422. -- line height: 16
  423. -- part name: Functionless Button 2
  424.